<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:f="http://java.sun.com/jsf/core">

    <body>

        <ui:composition template="./Test.xhtml">
            <ui:define name="content">

                <h1><h:outputText value="Create"/></h1>
                <table>
                    <tr>
                        <td><b>Question *</b></td>
                        <td><p:editor value="#{fAQBean.fa.question}" id="txtcontent" required="true" requiredMessage="Question not null!">
                              
                            </p:editor>
                        </td>
                        <td><h:messages for="txtcontent"/><h:outputText id="display" value="#{fAQBean.msfaq}" style="font-size: smaller;font-weight: normal;color: red"/></td>
                    </tr>
                    <tr>
                        <td><b>Answer *</b></td>
                        <td> <p:editor value="#{fAQBean.fa.answer}" id="txtanswer" required="true" requiredMessage="Answer not null!"/></td>
                        <td><h:messages for="txtanswer"/></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td> <h:commandButton action="FAQs" actionListener="#{fAQBean.addFAQs}" image="../resources/images/forms/form_submit.gif"/>
                            <h:commandButton value="Reset" type="Reset" image="../resources/images/forms/form_reset.gif"/></td>
                    </tr>






                </table>
            </ui:define>

        </ui:composition>

    </body>
</html>
